#include <REGX52.H>
	

void UART_Init(void)		//4800bps@12.000MHz
{
	SCON = 0x50;		//8???,?????
	PCON |=0x80;	//???1???Fosc/12,?12T
	TMOD &= 0x0F;	
  TMOD |= 0x20;		//?????1?16???????
	TL1 = 0xF3;		//??????
	TH1 = 0xF3;		//??????
	ET1 = 0;		//?????1??
	TR1 = 1;		//?????1
}

void UART_SendByte(unsigned char Byte)
{
	SBUF=Byte;
	while(TI==0){
		TI==0;
	}
}
	void main (){
		UART_Init();
		UART_SendByte(0x66);
		while(1){
			
			
			
			
		}
	}
	